<?php

namespace common\models\ar;

use Yii;

/**
 * This is the model class for table "activation_detail".
 *
 * @property int $id
 * @property int $uid 代理或客户ID
 * @property int $item_id 激活项目ID
 * @property int $time 激活时间
 */
class ActivationDetail extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'activation_detail';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'item_id', 'time'], 'integer'],
            [['time'], 'required'],
            [['uid', 'item_id'], 'unique', 'targetAttribute' => ['uid', 'item_id']],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => '代理或客户ID',
            'item_id' => '激活项目ID',
            'time' => '激活时间',
        ];
    }
}
